MessageDialog.ShowModalWithin Method
Displays the MessageDialog window as a sheet window (Mac OS X only). Returns a MessageDialogButton, which indicates which button was pressed.
Syntax
To find out which button was pressed, compare it to the button instances in the dialog.